<h2>Create New Page</h2>

<%= error_messages_for :page %>

<% form_for :page, :url => pages_url, :html => { :method => :post } do |f| -%>
  <p>Title:<br /><%= f.text_field :title, :size => 60 %></p>
  <p>Body:<br /><%= f.text_area :body, :rows => 20, :cols => 60 %></p>
  <%= submit_tag 'Save' %> or <%= link_to 'cancel', pages_url %>
<% end -%>
